<?php

namespace app\controller;

use app\controller\Request\TradeAlipayQueryRequest;
use app\controller\Request\TradeAlipayRefundRequest;
use Omnipay\Common\Message\RequestInterface;

class TradeAlipayQrcodeRefundGateway extends AbstractGateway
{
    public function getName(): string
    {
        return "Trade Alipay Qrcode Refund";
    }


    public function refund(array $options = array()): RequestInterface
    {
        return $this->createRequest(TradeAlipayRefundRequest::class, $options);
    }

    /**
     * 查询支付订单状态
     */
    public function queryOrder(array $options = array()): RequestInterface
    {
        return $this->createRequest(TradeAlipayQueryRequest::class, $options);
    }
}
